<template>
  <div>
    <div v-for="item in ProductB" class="PBB">
      <div class="PBB-image">
        <img :src="item.src" alt="">
      </div>
      <div class="PBB-msg">
        <h3 class="PBB-title">{{item.title}}</h3>
        <div class="PBB-price">{{item.price}}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props:{
    ProductB: {
      type: Array,
      default: []
    }
  }
}
</script>

<style lang="css">
  .PBB{
    padding: 13px;
    height: 100px;
    overflow: hidden;
  }
  .PBB-image{
    width: 20%;
    height: 100%;
    overflow: hidden;
    float: left;
  }
  .PBB-image img{
    width: 100%;
    height: auto;
  }
  .PBB-msg{
    width: calc(80% - 20px);
    height: 100%;
    padding-left: 20px;
    float: left;
    position: relative;
  }
  .PBB-price{
    color: red;
    position: absolute;
    right: 0px;
    bottom: 10px;
  }
</style>
